<template>
  <a-config-provider :locale="zhCN">
    <router-view />
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale-provider/zh_CN'
import  { onMounted} from 'vue';
onMounted(() => {
  // // 关闭浏览器窗口的时候清空浏览器缓存在localStorage的数据
  // window.addEventListener('beforeunload',()=>{
  //   if (localStorage.getItem("breadArr")) {
  //     localStorage.removeItem("breadArr");
  //   }
  //   if (localStorage.getItem("selectkeyArr")) {
  //     localStorage.removeItem("selectkeyArr");
  //   }
  // });
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  /*color: #2c3e50;*/
  /*margin-top: 60px;*/
}
</style>
